<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="TipoCertificadoCreateDlg" widgetVar="TipoCertificadoCreateDialog" modal="true" resizable="false" appendTo="@(body)" header="#{myBundle.CreateTipoCertificadoTitle}" closeOnEscape="true">

            <h:form id="TipoCertificadoCreateForm">

                <h:panelGroup id="display" rendered="#{tipoCertificadoController.selected != null}">
                    <p:panelGrid columns="2" columnClasses="column">

                        <p:outputLabel value="#{myBundle.CreateTipoCertificadoLabel_idTipoCertificado}" for="idTipoCertificado" />
                        <h:panelGroup>
                            <p:inputText id="idTipoCertificado" value="#{tipoCertificadoController.selected.idTipoCertificado}" title="#{myBundle.CreateTipoCertificadoTitle_idTipoCertificado}" required="true" requiredMessage="#{myBundle.CreateTipoCertificadoRequiredMessage_idTipoCertificado}"/>
                            <p:tooltip for="idTipoCertificado" value="#{tipoCertificadoController.getComponentMessages('idTipoCertificado', myBundle.CreateTipoCertificadoHelpText_idTipoCertificado)}"/>
                        </h:panelGroup>

                        <p:outputLabel value="#{myBundle.CreateTipoCertificadoLabel_nombre}" for="nombre" />
                        <h:panelGroup>
                            <p:inputText id="nombre" value="#{tipoCertificadoController.selected.nombre}" title="#{myBundle.CreateTipoCertificadoTitle_nombre}" required="true" requiredMessage="#{myBundle.CreateTipoCertificadoRequiredMessage_nombre}" size="16" maxlength="16"/>
                            <p:tooltip for="nombre" value="#{tipoCertificadoController.getComponentMessages('nombre', myBundle.CreateTipoCertificadoHelpText_nombre)}"/>
                        </h:panelGroup>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{tipoCertificadoController.saveNew}" value="#{myBundle.Save}" update="display,:TipoCertificadoListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,TipoCertificadoCreateDialog);">
                        <p:confirm header="#{myBundle.ConfirmationHeader}" message="#{myBundle.ConfirmCreateMessage}" icon="ui-icon-alert"/>
                    </p:commandButton>

                    <p:commandButton value="#{myBundle.Cancel}" onclick="TipoCertificadoCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
